

load Fig1data ;

year=MFAShares(:,1);


others=MFAShares(:,3:16);
total_others=sum(others');
total_others=total_others';

figure % new figure
[hAx,hLine1,hLine2] = plotyy(year, CHIMP_IndVAD(:,2),year, MFAShares(:,2));


xlabel('Year', 'FontSize',11,...
    'FontName','Times New Roman')

hLine1.Color = [0.0 0.25 0.75];
hLine2.Color = 'k';
hLine1.LineWidth = 2.5;
hLine2.LineWidth = 2.5;
hLine1.LineStyle = '-';
hLine1.Marker = 'o';
hLine2.LineStyle = '--';
hLine2.Marker = 'd';
set(hAx(1),'YLim',[0.3 1], 'YTick',[0.2:.2:1], 'XLim', [1999 2010], 'XTick', [1999 2002 2005 2010], 'YColor',[.0 .25 0.75] ,'LineWidth',1.25 )
set(hAx(2),'YLim',[0.09 0.35], 'YTick',[0:.1:0.35], 'XLim', [1999 2010], 'XTick', [1999 2002 2005 2010], 'YColor','k','LineWidth',1.25)

ylabel(hAx(1),{'Value of Total Chinese Imports in Quota Goods'; 'measured in multiples of 1999 total industry value-added'},'FontSize',12,...
    'FontName','Times New Roman') % left y-axis
ylabel(hAx(2),'Share in Total T&C Imports','FontSize',12,...
    'FontName','Times New Roman') % right y-axis



h=gcf ;
hold on

hold(hAx(1));

hold(hAx(2));

plot(hAx(2), year, total_others, 'Color', 'g','LineWidth', 1.5, 'LineStyle', ':', 'Marker', '>');




%'Position',[0.182975954491554 0.415617932102474 0.188935915965411 0.507397583656138],
  %'Location','bestoutside','Orientation','vertical');
%title(l2,'Import Shares')
l2=legend({'Value of quota goods from China (left axis)','Import share of China (right axis)', ['Import share of other countries subject to' char(10) ' MFA quotas as of 1999 (right axis)']});
set(l2,'FontName','Times New Roman','FontSize',12);
   
legend('boxoff');

